package com.ruoyi.coal.modules.coalpile.domain.vo;

import io.swagger.annotations.ApiModelProperty;

public class CoalYardVo {
    @ApiModelProperty("煤场id")
    private Integer id;

    @ApiModelProperty("煤场名称")
    private String name;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.vo.CoalYardVo))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.vo.CoalYardVo other = (com.ruoyi.coal.modules.coalpile.domain.vo.CoalYardVo) o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$name = getName(), other$name = other.getName();
        return !((this$name == null) ? (other$name != null) : !this$name.equals(other$name));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.vo.CoalYardVo;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $name = getName();
        return result * 59 + (($name == null) ? 43 : $name.hashCode());
    }

    public String toString() {
        return "CoalYardVo(id=" + getId() + ", name=" + getName() + ")";
    }

    public Integer getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }
}

